package com.cyzy.controller;

import com.cyzy.domain.dto.ResponseData;
import com.cyzy.domain.query.WareHouseQuery;
import com.cyzy.service.WareHosueService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class WareHouseController {
    @Autowired
    private WareHosueService wareHosueService;
    @PostMapping("/warehousedata")
    public ResponseData warehousedata(@RequestBody WareHouseQuery wareHouseQuery){
        return  wareHosueService.warehousedata(wareHouseQuery);

    }
}
